const mutations = {
	//修改登录状态
	changeLogin(state, data) {
		state.user.isLogin = data
	},
	//修改商品数据
	changeProductList(state, data) {
		state.product.list = data
	},
	//修改推荐商品数据
	changeRecommed(state, data) {
		state.product.recommed = data
	},
	//增加购物车数据
	addCart(state, data) {
		state.shopCart.unshift(data)
	},
	//增加订单数据
	add(state, value) {
		state.finalList = []
		state.finalList.unshift(value)
	},
	chan(state, value) {
		state.shopCart = value
	},

	//修改修改的值
	changeSerachValue(state, data) {
		state.serachValue = data
	}
}

export default mutations;
